<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>我的店铺 - 巷陌发现</title>
  <link rel="stylesheet" href="../static/layui/css/layui.css">
  <script src="../static/js/jquery.js"></script>
  <script src="../static/js/jquery.cookie.js"></script>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
      background-color: #f5f7fa;
      color: #333;
      line-height: 1.6;
      padding: 20px 0;
    }

    /* 内容区域样式 */
    .content-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* 页面标题区域 */
    .page-header {
      background-color: white;
      border-radius: 12px;
      padding: 25px;
      margin-bottom: 25px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .page-title {
      font-size: 24px;
      color: #333;
      display: flex;
      align-items: center;
    }

    .page-title i {
      margin-right: 10px;
      color: #6a11cb;
    }

    .add-shop-btn {
      background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
      color: white;
      border: none;
      padding: 12px 25px;
      border-radius: 6px;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
    }

    .add-shop-btn:hover {
      background: linear-gradient(45deg, #5a0dc8 0%, #1a69e0 100%);
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(106, 17, 203, 0.2);
    }

    .add-shop-btn i {
      margin-right: 8px;
    }

    /* 店铺统计卡片 */
    .stats-section {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 20px;
      margin-bottom: 25px;
    }

    .stat-card {
      background-color: white;
      border-radius: 12px;
      padding: 25px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      display: flex;
      align-items: center;
      transition: all 0.3s;
    }

    .stat-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    }

    .stat-icon {
      width: 60px;
      height: 60px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 15px;
      font-size: 24px;
      color: white;
    }

    .stat-info h3 {
      font-size: 14px;
      color: #666;
      margin-bottom: 5px;
    }

    .stat-info .number {
      font-size: 28px;
      font-weight: bold;
      color: #333;
    }
    .shop-status {
      position: absolute;
      top: 15px;
      left: 15px;
      padding: 5px 10px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: bold;
      color: white;
    }

    .status-pending {
      background-color: rgba(255, 152, 0, 0.9); /* 橙色 - 待审核 */
    }
    /* 店铺列表 */
    .shop-list-section {
      background-color: white;
      border-radius: 12px;
      padding: 25px;
      margin-bottom: 30px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .section-title {
      font-size: 20px;
      color: #333;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 2px solid #f0f0f0;
      display: flex;
      align-items: center;
    }

    .section-title i {
      margin-right: 10px;
      color: #6a11cb;
    }

    .shop-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
      gap: 25px;
      margin-top: 20px;
    }

    .shop-card {
      background-color: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      transition: all 0.3s ease;
      border: 1px solid #f0f0f0;
      position: relative;
    }

    .shop-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 20px rgba(106, 17, 203, 0.1);
    }

    .shop-image-container {
      position: relative;
      overflow: hidden;
    }

    .shop-image {
      width: 100%;
      height: 180px;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .shop-card:hover .shop-image {
      transform: scale(1.05);
    }

    .shop-status {
      position: absolute;
      top: 15px;
      left: 15px;
      padding: 5px 10px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: bold;
    }

    .status-open {
      background-color: rgba(76, 175, 80, 0.9);
      color: white;
    }

    .status-closed {
      background-color: rgba(244, 67, 54, 0.9);
      color: white;
    }

    .shop-actions {
      position: absolute;
      top: 15px;
      right: 15px;
      display: flex;
      gap: 8px;
    }

    .shop-action-btn {
      width: 36px;
      height: 36px;
      background-color: rgba(255, 255, 255, 0.9);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      transition: all 0.3s;
      color: #666;
    }

    .shop-action-btn:hover {
      background-color: white;
      transform: scale(1.1);
    }

    .shop-action-btn.edit:hover {
      color: #2196F3;
    }

    .shop-action-btn.delete:hover {
      color: #F44336;
    }

    .shop-info {
      padding: 20px;
    }

    .shop-name {
      font-size: 18px;
      font-weight: bold;
      margin-bottom: 8px;
      color: #333;
      transition: color 0.3s;
    }

    .shop-card:hover .shop-name {
      color: #6a11cb;
    }

    .shop-category {
      color: #6a11cb;
      font-size: 14px;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
    }

    .shop-category i {
      margin-right: 5px;
    }

    .shop-desc {
      color: #666;
      font-size: 14px;
      line-height: 1.6;
      margin-bottom: 15px;
      height: 68px;
      overflow: hidden;
      position: relative;
    }

    .shop-desc::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 30px;
      background: linear-gradient(transparent, white);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .shop-card:hover .shop-desc::after {
      opacity: 1;
    }

    .shop-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 10px;
      border-top: 1px dashed #f0f0f0;
    }

    .shop-rating {
      color: #FF9800;
      font-weight: bold;
      display: flex;
      align-items: center;
    }

    .shop-stats {
      display: flex;
      gap: 15px;
      font-size: 13px;
      color: #666;
    }

    .shop-stat {
      display: flex;
      align-items: center;
    }

    .shop-stat i {
      margin-right: 4px;
    }

    /* 空状态样式 */
    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: #999;
    }

    .empty-icon {
      font-size: 60px;
      margin-bottom: 20px;
      color: #eee;
    }

    .empty-text {
      font-size: 18px;
      margin-bottom: 15px;
    }

    .empty-subtext {
      font-size: 14px;
      margin-bottom: 30px;
    }

    .empty-action {
      background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 4px;
      cursor: pointer;
    }

    /* 分页样式 */
    .pagination-container {
      margin-top: 30px;
      text-align: center;
      padding: 15px 0;
    }

    /* 响应式设计 */
    @media (max-width: 992px) {
      .shop-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 768px) {
      .shop-grid {
        grid-template-columns: 1fr;
      }

      .page-header {
        flex-direction: column;
        align-items: flex-start;
      }

      .add-shop-btn {
        margin-top: 15px;
      }

      .stats-section {
        grid-template-columns: 1fr;
      }
    }
  </style>
</head>
<body>
<!-- 内容区域 -->
<div class="content-container">
  <!-- 页面标题区域 -->
  <div class="page-header">
    <h1 class="page-title"><i class="layui-icon layui-icon-home"></i> 我的店铺</h1>
    <button class="add-shop-btn" onclick="addNewShop()">
      <i class="layui-icon layui-icon-add-1"></i> 添加新店铺
    </button>
  </div>
  <!-- 店铺列表 -->
  <div class="shop-list-section">
    <h2 class="section-title"><i class="layui-icon layui-icon-list"></i> 店铺列表</h2>
    <div class="shop-grid" id="shopList">
      <!-- 店铺卡片将由JS动态生成 -->
    </div>

  </div>
</div>

<script src="../static/js/layui.js"></script>
<script src="../static/js/userOwnerShops.js"></script>
</body>
</html>